Matthias Clasen [Fri, 5 Jan 2018 03:55:04 +0000 (22:55 -0500)]
wayland: Plug memory leaks
We were forgetting to free the GdkContentFormats
objects in an early exit case.
Matthias Clasen [Fri, 5 Jan 2018 03:54:29 +0000 (22:54 -0500)]
Plug a memory leak
gdk_pixbuf_format_get_name returns newly allocated
strings.
Matthias Clasen [Fri, 5 Jan 2018 03:24:43 +0000 (22:24 -0500)]
label: Plug a memory leak
We were sometimes leaking the content serializer object.
Matthias Clasen [Fri, 5 Jan 2018 03:24:21 +0000 (22:24 -0500)]
font chooser: Plug a memory leak
We were leaking the hb_font object.
Matthias Clasen [Fri, 5 Jan 2018 02:19:28 +0000 (21:19 -0500)]
font chooser: Fix a memory leak
We were leaking the delayed font descriptions.
Matthias Clasen [Thu, 4 Jan 2018 23:23:36 +0000 (18:23 -0500)]
Remove a dead macro
GCs have been dead for a long time.
Matthias Clasen [Thu, 4 Jan 2018 23:22:47 +0000 (18:22 -0500)]
Quiet the doc build a bit
Matthias Clasen [Thu, 4 Jan 2018 20:55:09 +0000 (15:55 -0500)]
gdk: Convince gtk-doc to include backend docs
This is almost as unpleasant with meson as it is with autotools.
Timm Bäder [Thu, 4 Jan 2018 20:38:22 +0000 (21:38 +0100)]
notebook: Fix wrong tab widgets allocation
Since we allocate the tab widgets on demand, we have to queue an extra
resize here.
Timm Bäder [Thu, 4 Jan 2018 17:25:55 +0000 (18:25 +0100)]
widget: Avoid casting event coordinates to int in contains()
Matthias Clasen [Thu, 4 Jan 2018 20:26:52 +0000 (15:26 -0500)]
docs: Remove unused images
All the old cursor font images are unused.
Matthias Clasen [Thu, 4 Jan 2018 02:21:58 +0000 (21:21 -0500)]
fontchooser: fix feature formatting
There was a " missing, causing some features to be missed.
Timm Bäder [Thu, 4 Jan 2018 12:16:24 +0000 (13:16 +0100)]
window: Fix an event widget/target mixup
This makes dragging inside a GtkEntry in the window decoration work
again.
Timm Bäder [Thu, 4 Jan 2018 12:15:15 +0000 (13:15 +0100)]
widget: Ignore non-gestures in _gtk_widget_consumes_motion
priv->event_controllers is a list of all event controllers, which aren't
all GtkGesture subclasses.
Timm Bäder [Thu, 4 Jan 2018 11:17:21 +0000 (12:17 +0100)]
filechooser: Manage spinner state
So we don't get an allocate every frame.
Timm Bäder [Thu, 4 Jan 2018 10:43:43 +0000 (11:43 +0100)]
gl renderer: Add test case for last commit
Timm Bäder [Thu, 4 Jan 2018 10:41:51 +0000 (11:41 +0100)]
gl renderer: Fix text color pre-multiplication
Timm Bäder [Thu, 4 Jan 2018 10:08:39 +0000 (11:08 +0100)]
recorder: Fix a button tooltip
This button will save the selected node to a file, not all recorded
frames.
Piotr Drąg [Wed, 3 Jan 2018 20:28:36 +0000 (21:28 +0100)]
Update POTFILES.skip
Matthias Clasen [Wed, 3 Jan 2018 19:23:33 +0000 (14:23 -0500)]
gtk-demo: Update font explorer example
Revise the UI (no more double checkboxes), add font variations,
update font features from the dialog, allow tweaking ranges.
Piotr Drąg [Wed, 3 Jan 2018 19:24:05 +0000 (20:24 +0100)]
Update POTFILES.in
Matthias Clasen [Wed, 3 Jan 2018 19:06:00 +0000 (14:06 -0500)]
font chooser: Manage tweak button sensitivity
When we don't have any font features or variation axes,
there is no point in going to the tweak page, so disable
the action in this case.
Matthias Clasen [Wed, 3 Jan 2018 19:04:50 +0000 (14:04 -0500)]
font chooser dialog: Improve sensitivity handling
We should not tie the sensitivity of the select button
to the tweak action, since there may be fonts which are
selectable, but not tweakable.
Instead, enable the select button when a font is selected,
as it should be.
Matthias Clasen [Wed, 3 Jan 2018 18:41:20 +0000 (13:41 -0500)]
font chooser: Don't set hardcoded default features
We should rely on harfbuzz to select the right defaults.
Matthias Clasen [Wed, 3 Jan 2018 18:28:33 +0000 (13:28 -0500)]
font chooser: Support font variations
Add sliders for the available axes to the tweak page.
Matthias Clasen [Wed, 20 Dec 2017 14:11:04 +0000 (09:11 -0500)]
font button: Take variations into account
We need to apply variations too, when we are using
the font to render the button label.
Matthias Clasen [Wed, 20 Dec 2017 05:45:30 +0000 (00:45 -0500)]
Implement font-variation-settings
This is a CSS font level 4 property that lets us
use font variation settings from css.
Matthias Clasen [Wed, 3 Jan 2018 18:06:28 +0000 (13:06 -0500)]
Bump the pango requirement
We want to use the new font variation api in pango 1.41.
Matthias Clasen [Wed, 3 Jan 2018 04:52:24 +0000 (23:52 -0500)]
font chooser: Add properties for features and language
These can't be returned as part of the font description,
so we need new api for them. For now, this is just readonly
properties. Maybe these should be writable too, eventually.
Matthias Clasen [Wed, 3 Jan 2018 04:46:37 +0000 (23:46 -0500)]
Add font features on the tweak page
Matthias Clasen [Wed, 3 Jan 2018 03:52:05 +0000 (22:52 -0500)]
font chooser: Add a tweak page
Add a button the dialog's header bar that lets us
switch to a second page where we can customize
the selected font.
Make the font chooser widget export an action that the
dialog can use for the button. This has some advantages:
- we can export not just the toggle state, but also enabled
- we can reuse the same enabled state to make the select
button insensitive when no font is selected
To determine whether a font is selected, listen to changes
of the list selection. And ensure that the font chooser is
in an initial state when mapped, even if we close the dialog
from the tweak page.
Matthias Clasen [Thu, 21 Dec 2017 16:58:20 +0000 (11:58 -0500)]
font button: Remove show-font and show-size
These are now handled in a more systematic fashion
using GtkFontChooserLevel.
Matthias Clasen [Thu, 21 Dec 2017 15:51:04 +0000 (10:51 -0500)]
font chooser: introduce font chooser levels
This is a more systematic approach to reducing the
level of detail in the font chooser.
Matthias Clasen [Tue, 19 Dec 2017 22:10:34 +0000 (17:10 -0500)]
font chooser: Small revision of the UI
Show only the font names in the list, in their own
font, in order to make the list less noisy.
Timm Bäder [Wed, 3 Jan 2018 16:10:21 +0000 (17:10 +0100)]
Make a few more code samples compile
Timm Bäder [Wed, 3 Jan 2018 15:39:31 +0000 (16:39 +0100)]
entry: Remove some questionable code examples
Timm Bäder [Wed, 3 Jan 2018 15:34:49 +0000 (16:34 +0100)]
widget: Make all code snippets compile
Timm Bäder [Wed, 3 Jan 2018 15:14:47 +0000 (16:14 +0100)]
Move geometry management docs do GtkWidget
Both GtkWidget and GtkContainer had similar docs regarding hfw/wfh
geometry management. Move these just to GtkWidget. Also make sure the
examples compile, port everything from gtk_preferred_* to measure and
replace some occurrences of "container" with "widget" where container
was just used to refer to a widget with child widgets.
Timm Bäder [Wed, 3 Jan 2018 14:01:12 +0000 (15:01 +0100)]
liststore: Make a code snippet compile
Timm Bäder [Wed, 3 Jan 2018 13:37:01 +0000 (14:37 +0100)]
searchbar: Make a code snippet compile
Timm Bäder [Wed, 3 Jan 2018 13:32:44 +0000 (14:32 +0100)]
menuitem: Make a code snippet compile
Timm Bäder [Wed, 3 Jan 2018 13:29:00 +0000 (14:29 +0100)]
expander: Make a code snippet compile
Timm Bäder [Wed, 3 Jan 2018 13:10:22 +0000 (14:10 +0100)]
treeviewcolumn: Make a code snippet compile
Timm Bäder [Wed, 3 Jan 2018 13:01:38 +0000 (14:01 +0100)]
notebook: Make a code snippet compile
Timm Bäder [Wed, 3 Jan 2018 12:51:03 +0000 (13:51 +0100)]
scrolledwindow: Fix code sample compilation
Krzesimir Nowak [Wed, 3 Jan 2018 08:59:19 +0000 (09:59 +0100)]
examples, gtk-demo: Fix copy-pasta in signal name
Rico Tzschichholz [Wed, 3 Jan 2018 07:26:21 +0000 (08:26 +0100)]
gdk: Drop invalid "transfer" g-i annotations
Rico Tzschichholz [Wed, 3 Jan 2018 07:18:47 +0000 (08:18 +0100)]
dnd: Add g-i annotations for gdk_drop_read_async/finish
Rico Tzschichholz [Wed, 3 Jan 2018 07:17:23 +0000 (08:17 +0100)]
gsk: Add docs for gsk_texture_node_get_texture
Matthias Clasen [Tue, 2 Jan 2018 20:46:19 +0000 (15:46 -0500)]
Fix pointer obscuring in text view
The code for hiding the mouse cursor until the next motion
event was not working, probably due to a typo here.
Arnaud Bonatti [Wed, 29 Nov 2017 07:46:48 +0000 (08:46 +0100)]
Add test for GtkActionable GtkListBoxRow.
https://bugzilla.gnome.org/show_bug.cgi?id=741633
Arnaud Bonatti [Fri, 24 Nov 2017 13:26:39 +0000 (14:26 +0100)]
Make GtkListBoxRow GtkActionable.
https://bugzilla.gnome.org/show_bug.cgi?id=741633
Matthias Clasen [Mon, 1 Jan 2018 23:28:31 +0000 (18:28 -0500)]
Remove selection-handling leftovers
The selection_get and selection_received vfuncs are
no longer used, remove them.
Matthias Clasen [Mon, 1 Jan 2018 22:56:35 +0000 (17:56 -0500)]
testinput: Make this work again
This test was not updated to using a draw func instead
of the ::draw signal yet. At the same time, make it use
::size-allocate instead of ::configure-event.
Matthias Clasen [Mon, 1 Jan 2018 18:27:56 +0000 (13:27 -0500)]
Drop an unused enum value
We haven't had a GtkWindow::frame-event since the
linux-fb backends demise.
Matthias Clasen [Mon, 1 Jan 2018 15:40:09 +0000 (10:40 -0500)]
testgtk: Fix the test scrolling test
We need to expand here, otherwise things look wrong.
Matthias Clasen [Mon, 1 Jan 2018 15:24:12 +0000 (10:24 -0500)]
testgtk: Fix the scrolledwindow test
We need to expand here, otherwise things look wrong.
Matthias Clasen [Mon, 1 Jan 2018 15:09:31 +0000 (10:09 -0500)]
gtk-demo: Port the drawingarea demo to a gesture
Use a drag gesture here, just like in the drawing example.
Matthias Clasen [Mon, 1 Jan 2018 15:00:37 +0000 (10:00 -0500)]
Port drawing example to gestures
Use a drag and a multi-press gesture.
Matthias Clasen [Mon, 1 Jan 2018 14:15:59 +0000 (09:15 -0500)]
Make drawing example work again
Using ::configure-event and ::draw on a drawing area
doesn't work anymore. Use ::size-allocate and a
draw function instead.
Matthias Clasen [Sun, 31 Dec 2017 19:35:44 +0000 (14:35 -0500)]
Remove testthreads
As far as I can tell, this has not been in the Makefiles
since 2001...
Matthias Clasen [Sun, 31 Dec 2017 18:26:13 +0000 (13:26 -0500)]
Drop an unintentional use of ::destroy-event
Clearly, ::destroy was meant here.
Matthias Clasen [Sun, 31 Dec 2017 18:05:47 +0000 (13:05 -0500)]
testsuite: Drop commented out and useless code
These two uses of ::delete-event were pointless.
Matthias Clasen [Sun, 31 Dec 2017 17:51:54 +0000 (12:51 -0500)]
Drop a no-longer-working test
Embedding toplevels does not work anymore.
Matthias Clasen [Sun, 31 Dec 2017 14:31:19 +0000 (09:31 -0500)]
Revert "inspector: Stop using GtkWidget::event"
This reverts commit
1268440c358add567c437693bf616634cf280235.
Turns out we'll keep ::event, so this was misguided.
Matthias Clasen [Sun, 31 Dec 2017 14:31:11 +0000 (09:31 -0500)]
Revert "treeviewcolumn: Stop using GtkWidget::event"
This reverts commit
da74314779ec155e06d370fd2f3f73f3948b1311.
Turns out we'll keep ::event, so this was misguided.
Matthias Clasen [Sun, 31 Dec 2017 14:31:02 +0000 (09:31 -0500)]
Revert "text handler: Stop using GtkWidget::event"
This reverts commit
74f563b50136c72e021f68a3f0256ed5cad69d01.
Turns out we'll keep ::event, so this was misguided.
Matthias Clasen [Sun, 31 Dec 2017 17:47:40 +0000 (12:47 -0500)]
spinner cell: Avoid a crash
The icon helper is not used, so no point in crashing
while trying to destroy it.
Matthias Clasen [Sun, 31 Dec 2017 13:39:37 +0000 (08:39 -0500)]
docs: Don't mention non-longer-existing signals
The ::window-state-event signal no longer exists.
Timm Bäder [Tue, 2 Jan 2018 17:55:55 +0000 (18:55 +0100)]
GdkTexture: Add a missing (array) annotation
Timm Bäder [Tue, 2 Jan 2018 07:36:10 +0000 (08:36 +0100)]
stack-allocate GtkCssLookup instances
Timm Bäder [Sun, 31 Dec 2017 07:45:40 +0000 (08:45 +0100)]
gl renderer: Avoid some code duplication
Timm Bäder [Sat, 30 Dec 2017 17:34:34 +0000 (18:34 +0100)]
gl driver: Remove some type checks in a hot path
Timm Bäder [Sat, 30 Dec 2017 09:01:12 +0000 (10:01 +0100)]
gl renderer: Remove an unnecessary block
Timm Bäder [Sun, 31 Dec 2017 14:16:22 +0000 (15:16 +0100)]
css parser: Reuse one GString
Instead of creating a new one for every ident, name and string, just
create one GString and reuse it. This means the GString we keep around
will grow to the maximum size of any ident, name or string we parse,
which is still not terribly large.
Daniel Boles [Mon, 1 Jan 2018 21:21:52 +0000 (21:21 +0000)]
themes: missing specificity bump on expander arrow
Commit
4ee02725b407b277c36720f6f4279989730d24a2 made the :hover apply to
the title node, not the arrow node, but the selectors it added were not
caught by the recent commits fixing the specificity of title > arrow.
Daniel Boles [Mon, 1 Jan 2018 19:53:43 +0000 (19:53 +0000)]
themes: Regenerate CSS to reflect recent commits
a lot of them, in this case
Daniel Boles [Mon, 1 Jan 2018 18:49:09 +0000 (18:49 +0000)]
HighContrast: Avoid expander↔combobox interference
as per commit
4241c4bdbd652abb76a3c9fc3e1194bc606a4477
Matthias Clasen [Sun, 31 Dec 2017 04:24:22 +0000 (23:24 -0500)]
emoji: Accept unpaired releases for variations
This enables a single long-press-move-release gesture
for picking a variation. This is not perfect yet: We
don't get hover in this case.
Matthias Clasen [Sun, 31 Dec 2017 04:23:16 +0000 (23:23 -0500)]
list, flow box: Make unpaired releases opt-in
We don't want a pointer that is moved off a scrollbar
to trigger a row when it gets released. To avoid this,
require an explicit opt-in to handling unpaired-releases.
Matthias Clasen [Sun, 31 Dec 2017 03:46:28 +0000 (22:46 -0500)]
dnd: Drop docs that are no longer relevant
We no longer take an event as argument, so no
need to explain how to obtain a suitable event.
Matthias Clasen [Sun, 31 Dec 2017 03:38:14 +0000 (22:38 -0500)]
text handler: Stop using GtkWidget::event
This signal is going away.
Matthias Clasen [Sun, 31 Dec 2017 03:27:54 +0000 (22:27 -0500)]
treeviewcolumn: Stop using GtkWidget::event
This signal is going away.
Matthias Clasen [Sun, 31 Dec 2017 03:13:45 +0000 (22:13 -0500)]
inspector: Stop using GtkWidget::event
This signal is going away.
Matthias Clasen [Fri, 29 Dec 2017 18:13:36 +0000 (13:13 -0500)]
Drop deprecated text view layers
These have been marked as deprecated, so lets drop them.
Matthias Clasen [Fri, 29 Dec 2017 18:12:06 +0000 (13:12 -0500)]
Update new css docs for new nowrap handling
This changes the recent additions to the css property
docs to also use <phrase role="nowrap">
Arnaud Rebillout [Sat, 16 Dec 2017 16:12:50 +0000 (23:12 +0700)]
gtk: remove non-breaking space, probably there by mistake
Signed-off-by: Arnaud Rebillout <elboulangero@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=791710
Arnaud Rebillout [Sat, 16 Dec 2017 15:50:12 +0000 (22:50 +0700)]
css docs: fix some formatting inconsistencies along the way
Mostly spaces.
Signed-off-by: Arnaud Rebillout <elboulangero@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=791710
Arnaud Rebillout [Sat, 16 Dec 2017 15:32:08 +0000 (22:32 +0700)]
css docs: remove useless <para>
Signed-off-by: Arnaud Rebillout <elboulangero@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=791710
Arnaud Rebillout [Sat, 16 Dec 2017 15:29:30 +0000 (22:29 +0700)]
css docs: swap border-width and border-left shorthands, to keep going clockwise
Signed-off-by: Arnaud Rebillout <elboulangero@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=791710
Arnaud Rebillout [Sat, 16 Dec 2017 15:26:33 +0000 (22:26 +0700)]
css docs: Fix duplicate border‑right‑width
Signed-off-by: Arnaud Rebillout <elboulangero@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=791710
Arnaud Rebillout [Sat, 16 Dec 2017 14:37:21 +0000 (21:37 +0700)]
css docs: Fix refentry and refname
Signed-off-by: Arnaud Rebillout <elboulangero@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=791710
Arnaud Rebillout [Sat, 16 Dec 2017 15:02:00 +0000 (22:02 +0700)]
css docs: Ensure the first column does not break for every table
Signed-off-by: Arnaud Rebillout <elboulangero@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=791710
Arnaud Rebillout [Sat, 16 Dec 2017 14:47:34 +0000 (21:47 +0700)]
css docs: Get rid of non-breaking hyphens
Signed-off-by: Arnaud Rebillout <elboulangero@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=791710
Arnaud Rebillout [Sat, 16 Dec 2017 14:42:13 +0000 (21:42 +0700)]
css docs: Get rid of non-breaking spaces
Signed-off-by: Arnaud Rebillout <elboulangero@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=791710
Arnaud Rebillout [Sat, 16 Dec 2017 14:33:51 +0000 (21:33 +0700)]
css docs: Fix some angle brackets for percentage
Signed-off-by: Arnaud Rebillout <elboulangero@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=791710
Timm Bäder [Fri, 29 Dec 2017 07:52:14 +0000 (08:52 +0100)]
window: Avoid a set-but-not-used warning
Timm Bäder [Fri, 29 Dec 2017 07:51:57 +0000 (08:51 +0100)]
gl renderer: Fix release build
Timm Bäder [Fri, 29 Dec 2017 04:47:22 +0000 (05:47 +0100)]
build: Rename a variable
Those aren't source headers...
Timm Bäder [Fri, 29 Dec 2017 04:42:23 +0000 (05:42 +0100)]
gl driver: Remove more unused API